package cn.tedu.oop;

import java.util.Scanner;

/**本类用于复写异常处理方案的代码*/
public class Exception2 {
    public static void main(String[] args) {
        f1();
    }
    private static void f1() {
        try{
            Scanner scanner = new Scanner(System.in);
            System.out.println("请您输入两个整数");
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println(a/b);
        }catch(Exception e){
            System.out.println("请您输入正确的数据");
        }
    }
}
